<%@ include file="/common/taglibs.jsp"%>
<head>
    <title><fmt:message key="simulatorDetail.title"/></title>
    <meta name="menu" content="SimulatorMenu"/>
</head>

<div class="col-sm-3">
    <h2><fmt:message key='simulatorDetail.heading'/></h2>
</div>

<div class="col-sm-7">
    <form:errors path="*" cssClass="alert alert-danger alert-dismissable" element="div"/>
    <form:form commandName="simulator" method="post" action="simulatorform" id="simulatorForm" cssClass="well">
    <form:hidden path="id"/>

    <spring:bind path="simulator.type">
        <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
    </spring:bind>
    <appfuse:label styleClass="control-label" key="simulator.type"/>
    <form:input path="type" id="type" maxlength="20" autofocus="true" cssClass="form-control"/>
    <form:errors path="type" cssClass="help-inline"/>
    </div>

        <spring:bind path="simulator.responseCode">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.responseCode"/>
        <form:input path="responseCode" id="responseCode" maxlength="50" cssClass="form-control"/>
        <form:errors path="responseCode" cssClass="help-block"/>
        </div>

    <spring:bind path="simulator.description">
        <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
    </spring:bind>
    <appfuse:label styleClass="control-label" key="simulator.description"/>
    <form:input path="description" id="description" maxlength="50" cssClass="form-control"/>
    <form:errors path="description" cssClass="help-block"/>
    </div>

        <spring:bind path="simulator.data1">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data1"/>
        <form:input path="data1" id="data1" maxlength="50" cssClass="form-control"/>
        <form:errors path="data1" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc1">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc1"/>
        <form:input path="desc1" id="desc1" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc1" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.data2">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data2"/>
        <form:input path="data2" id="data2" maxlength="50" cssClass="form-control"/>
        <form:errors path="data2" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc2">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc2"/>
        <form:input path="desc2" id="desc2" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc2" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.data3">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data3"/>
        <form:input path="data3" id="data3" maxlength="50" cssClass="form-control"/>
        <form:errors path="data3" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc3">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc3"/>
        <form:input path="desc3" id="desc3" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc3" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.data4">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data4"/>
        <form:input path="data4" id="data4" maxlength="50" cssClass="form-control"/>
        <form:errors path="data4" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc4">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc4"/>
        <form:input path="desc4" id="desc4" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc4" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.data5">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data5"/>
        <form:input path="data5" id="data5" maxlength="50" cssClass="form-control"/>
        <form:errors path="data5" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc5">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc5"/>
        <form:input path="desc5" id="desc5" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc5" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.data6">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data6"/>
        <form:input path="data6" id="data6" maxlength="50" cssClass="form-control"/>
        <form:errors path="data6" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc6">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc6"/>
        <form:input path="desc6" id="desc6" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc6" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.data7">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.data7"/>
        <form:input path="data7" id="data7" maxlength="50" cssClass="form-control"/>
        <form:errors path="data7" cssClass="help-block"/>
        </div>

        <spring:bind path="simulator.desc7">
            <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
        </spring:bind>
        <appfuse:label styleClass="control-label" key="simulator.desc7"/>
        <form:input path="desc7" id="desc7" maxlength="50" cssClass="form-control"/>
        <form:errors path="desc7" cssClass="help-block"/>
        </div>

<div class="form-group form-actions">
    <button type="submit" class="btn btn-primary" name="save" onclick="bCancel=false">
        <i class="icon-ok icon-white"></i> <fmt:message key="button.save"/>
    </button>
    <c:if test="${not empty simulator.id}">
        <button type="submit" class="btn btn-default" name="delete" onclick="bCancel=true;return confirmMessage(msgDelConfirm)">
            <i class="icon-trash"></i> <fmt:message key="button.delete"/>
        </button>
    </c:if>
    <button type="submit" class="btn btn-default" name="cancel" onclick="bCancel=true">
        <i class="icon-remove"></i> <fmt:message key="button.cancel"/>
    </button>
</div>
</form:form>
</div>

<v:javascript formName="simulator" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<c:url value='/scripts/validator.jsp'/>"></script>